package com.cloud.template.luna.service.impl;

import com.cloud.template.dao.UserDao;
import com.cloud.template.luna.entity.User;
import com.cloud.template.luna.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 用户服务
 * Created by Viole on 2017/12/29.
 */
@Service("userService")
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User findByUserName(String userName){
        return userDao.findByUserName(userName);
    }

}
